<template>
    <div class="RealSearch">
        <van-list v-model="loading" :finished="finished" finished-text="到底了" @load="onLoad">
            <van-cell @click="search(item)" v-for="(item,index) in searchList" :key="index" :title="item" />
        </van-list>
    </div>
</template>

<script>
    export default {
        name: 'YxRealsearch',
        props:["searchList"],
        data() {
            return {
                loading: false,
                finished: true,
                onLoad:false,
            };
        },

        mounted() {

        },

        methods: {
            search(val){
               this.$emit('searchtxt', val);
            }
        },
    };
</script>

<style lang="scss" scoped>
    .RealSearch {
        background-color: #fff;
    }

</style>
